import React from 'react'

import HomeStore from '../../stores/HomeStory'

import { inject, observer } from 'mobx-react'

import '../../config/dark-theme.less'
import CRUDPage from '../../components/crud/CRUDPage'

interface RulesManagerProps {
  HomeStore: HomeStore
}

interface RuleType {
  id: number
  name: string
  title: string
  remark: string
  auths: string[]
  key: number
}

const RulesManager: React.FC<RulesManagerProps> = ({}) => {
  return (
    <CRUDPage
      addUrl='/role/add'
      queryUrl='/role/list'
      deleteUrl='/role/delete'
      updateUrl='/role/update'
    />
  )
}

export default inject('HomeStore')(observer(RulesManager))
